
#include "Bsp.h"

void BSP_Init(void){
    rcu_periph_clock_enable(RCU_AF);	
    nvic_priority_group_set(NVIC_PRIGROUP_PRE4_SUB0);
	gpio_pin_remap_config(GPIO_SWJ_SWDPENABLE_REMAP, ENABLE);
	BSP_StrictDelay_Init();
	BSP_Led_Init();
	BSP_Uart_Init(2);
}

void BSP_ResetSystem(void){
	NVIC_SystemReset();
}

uint8_t Bsp_GetUid(uint32_t uid[3]){
	uid[0] = *(__IO uint32_t*)(0x1FFFF7E8);
	uid[1] = *(__IO uint32_t*)(0x1FFFF7EC);
	uid[2] = *(__IO uint32_t*)(0x1FFFF7F0);
	return 12;
}


